package cn.dnui_lf_705.dnui_16110100705.service;

import java.util.List;

import cn.dnui_lf_705.dnui_16110100705.bean.CarBean;
import cn.dnui_lf_705.dnui_16110100705.bean.CommentBean;
import cn.dnui_lf_705.dnui_16110100705.bean.FoodInfo;
import cn.dnui_lf_705.dnui_16110100705.bean.ResultBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface FoodService {
    @GET("getFoodByShop.do")
    Call<List<FoodInfo>>getFoodByShop(@Query("shop_id") String shop_id);
    @GET("getFoodById.do")
    Call<FoodInfo>getFoodById(@Query("food_id") String food_id);
    @GET("getAllCommentsByFood.do")
    Call<List<CommentBean>>getAllCommentsByFood(@Query("food_id") String food_id);
    @GET("getFoodBySearch.do")
    Call<List<FoodInfo>>getFoodBySearch(@Query("search") String search);
    @GET("getMyCartByUser.do")
    Call<List<CarBean>>getMyCartByUser(@Query("user_id") int user_id);
    @GET("deleteCartItem.do")
    Call<ResultBean>deleteCartItem(@Query("item_id") int item_id);
}
